package com.jsmile.cloud.accountcenter.account.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年06月04日 04:38:37
 */
@ApiModel
@Data
@TableName("t_ac_member_rule")
public class MemberRule extends Model<MemberRule> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "会员等级")
    private Integer level;
    @ApiModelProperty(value = "会员等级名称")
    private String name;
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    @ApiModelProperty(value = "个人中心会员权益图片")
    private String subImageUrl;
    @ApiModelProperty(value = "会员权益详情图片")
    private String detailImageUrl;
    @ApiModelProperty(value = "会员描述头图")
    private String headImageUrl;
    @ApiModelProperty(value = "会员权益是否需要购买：0:免费；1:付费")
    private Integer freeStatus;
    @ApiModelProperty(value = "分佣设置 0：享受分佣；1：不享受分佣")
    private Integer rebateStatus;
    @ApiModelProperty(value = "购买资格 0:可购买；1:不可购买")
    private Integer buyStatus;
    @ApiModelProperty(value = "自购返佣比例")
    private String selfRebateRatio;
    @ApiModelProperty(value = "分享返佣比例")
    private String shareRebateRatio;
    @ApiModelProperty(value = "一级交易返佣比例")
    private String primaryTransRebateRatio;
    @ApiModelProperty(value = "二级交易返佣比例")
    private String secondaryTransRebateRatio;
    @ApiModelProperty(value = "个人累计消费")
    private Long cumulativeConsumption;
    @ApiModelProperty(value = "两级下线累计消费")
    private Long bothCumulativeConsumption;
    @ApiModelProperty(value = "不同会员等级粉丝数量,等级:数量")
    private Long fans;
    @ApiModelProperty(value = "0：未删除，1：删除")
    @TableLogic
    private Integer delFlag;
    @ApiModelProperty(value = "create_time")
    private java.util.Date createTime;
    @ApiModelProperty(value = "update_time")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "平台id")
    private Integer platformId;
    @ApiModelProperty(value = "业务id")
    private Integer bizCode;

}
